﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="SZSLSystem.Web.Admin.DataDictionary.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>数据字典管理</title>
    <link rel="stylesheet" type="text/css" href="../Images/style.css" />
    <script type="text/javascript" src="../../Js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript">
        //    $(function() {
        //        //分页参数设置
        //        $("#Pagination").pagination(<%=pcount %>, {
        //        callback: pageselectCallback,
        //        prev_text: "« 上一页",
        //        next_text: "下一页 »",
        //        items_per_page:<%=pagesize %>,
        //		num_display_entries:3,
        //		current_page:<%=page %>,
        //		num_edge_entries:2,
        //		link_to:"?page=__id__"
        //       });
        //    });
        function pageselectCallback(page_id, jq) {
            //alert(page_id); 
        }
        $(function () {
            $(".msgtable tr:nth-child(odd)").addClass("tr_bg"); //隔行变色
            $(".msgtable tr").hover(
			function () {
			    $(this).addClass("tr_hover_col");
			},
			function () {
			    $(this).removeClass("tr_hover_col");
			}
		);
        });
    </script>
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="add"><a href="Add.aspx">增加数据字典</a></span><b>您当前的位置：首页 &gt; 系统管理 &gt; 数据字典列表</b></div>
    <div class="spClear">
    </div>
    <asp:Repeater ID="rptClassList" runat="server" OnItemCommand="rptClassList_ItemCommand"
        OnItemDataBound="rptClassList_ItemDataBound">
        <HeaderTemplate>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                <tr>
                    <th align="left">
                        字典名称
                    </th>
                    <th width="40%">
                        描述
                    </th>
                    <th width="8%">
                        优先级别
                    </th>
                    <th width="20%">
                        管理操作
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <asp:HiddenField ID="txtID" runat="server" Value='<%#Eval("ID") %>' />
                    <asp:HiddenField ID="txtName" runat="server" Value='<%#Eval("TypeName") %>' />
                    <asp:HiddenField ID="txtClassLayer" runat="server" Value='<%#Eval("ClassLayer") %>' />
                    <asp:Literal ID="LitFirst" runat="server"></asp:Literal>
                    <%# Eval("TypeName")%>
                </td>
                <td align="center">
                    <%# Eval("Description")%>
                </td>
                <td align="center">
                    <%# Eval("Sort") %>
                </td>
                <td align="center">
                    <span><a href="Add.aspx?ParentID=<%# Eval("ID") %>">[添加]</a></span> <span><a href="Edit.aspx?ID=<%# Eval("ID") %>">
                        [修改]</a></span> <span>
                            <asp:LinkButton ID="lbDel" CommandName="btndel" runat="server" OnClientClick="return confirm( '该操作会删除数据字典，确定要删除吗？ ');">[删除]</asp:LinkButton></span>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <div class="spClear">
    </div>
    </form>
</body>
</html>
